<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="/resources/layout/template.xhtml">

    <ui:define name="title">
        <h:outputText value="#{labels['signin.title']}" />
    </ui:define>
    
    <ui:define name="head">
        <h:outputStylesheet library="css" name="signin.css" />
    </ui:define>
    
    <ui:define name="breadcrumb"><li class="active">#{labels['signin.breadcrumb']}</li></ui:define>

    <ui:define name="body">
        <h:form id="signinForm" prependId="false" styleClass="form-signin" style="max-width: 330px">
            <h2 class="form-signin-heading">#{labels['signin.subtitle']}</h2>
            <p:inputText id="j_username" label="#{labels['field.email']}" styleClass="form-control" />
            <p:watermark value="#{labels['field.email']}" for="j_username" />
            <p:password id="j_password" label="#{labels['field.password']}" styleClass="form-control" />
            <p:watermark value="#{labels['field.password']}" for="j_password" />
            <label class="checkbox">
                <h:selectBooleanCheckbox id="_spring_security_remember_me" style="width: " />
                <h:outputText value="#{labels['signin.rememberMe']}" />
            </label>
            <p:commandButton action="#{segurancaController.login}"
                             value="#{labels['action.signin']}" ajax="false"
                             styleClass="btn btn-lg btn-primary btn-block"
                             style="padding: 0px" />
            <br /><br />
            <p:commandLink value="#{labels['signin.newUser']}" action="pretty:cadastrarUsuario" style="float: right; font-size: 11px;" />
            <p:commandLink value="#{labels['signin.forgotPassword']}" style="float: left; font-size: 11px;" />
        </h:form>
    </ui:define>
    
</ui:composition>
